unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, BaseGrid, AdvGrid, StdCtrls, AdvObj, ExtCtrls, RzPanel;

type
  TForm1 = class(TForm)
    AdvStringGrid1: TAdvStringGrid;
    Button1: TButton;
    Button2: TButton;
    ComboBox1: TComboBox;
    Tool_1: TRzToolbar;
    procedure FormShow(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormShow(Sender: TObject);
var
  I:Integer;
begin
  for i:=0 to AdvStringGrid1.RowCount-1 do
  begin
    AdvStringGrid1.Cells[2,I+1]:='Text';
  end;

end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  AdvStringGrid1.HideColumn(2);
  ShowMessage(AdvStringGrid1.ColumnHeaders.Strings[2]);
  ShowMessage(AdvStringGrid1.Cells[2,2]);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
//  ComboBox1.AutoDropDown:=True;
  ComboBox1.DroppedDown:=True;
end;

end.
